<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/3
 * Time: 21:21
 */

namespace luo\exception;

use luo\Exception;

class ErrorException extends Exception
{

    protected $errno;

    public function __construct($errno, $errstr, $errfile = '', $errline = 0, array $errcontext = [])
    {

        $this->errno    = $errno;
        $this->message  = $errstr;
        $this->file     = $errfile;
        $this->line     = $errline;
        $this->code     = 0;
        empty($errcontext) || $this->set('ErrorContext', $errcontext);

    }

}